package com.example.app01

import com.example.app01.ProgrammingAdviceModel

class ProgrammingAdviceController(private val model: ProgrammingAdviceModel) {
    // 调用Model获取建议
    fun getProgrammingAdvice(language: String): String {
        return if (language.isNotBlank()) {
            model.getAdvice(language)
        } else {
            ""
        }
    }
}
